import RootPage from "@/layout/index.vue";

/**
 * @type {import('vue-router').RouteRecord}
 */
export const AnyRoute = {
  path: "/:path(.*)*",
  name: "Any",
  hidden: true,
  component: () => import("@/views/inner/404.vue"),
  meta: {
    title: "404 - 页面未找到",
  },
};

/**
 * @type {import('vue-router').RouteRecord}
 */
export const NotAccessRoute = {
  path: "/inner/oops",
  name: "NotAccess",
  hidden: true,
  component: () => import("@/views/inner/oops.vue"),
  meta: {
    title: "无权访问此页面",
  },
};

export const RedirctRoute = {
  path: "/redirect",
  component: RootPage,
  hidden: true,
  meta: {
    title: "跳转中",
  },
  children: [
    {
      path: "/redirect/:path(.*)",
      component: () => import("@/views/inner/redirect.vue"),
      meta: {
        title: "跳转中",
      },
    },
  ],
};
